package nautilus.moneykeeper;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import nautilus.moneykeeper.system.SystemConfig;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class MainActivity extends Activity {

	private Button btnAccount, btnTransaction, btnReport;
	
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		//setContentView(R.layout.test_layout);
	}
	
	private void doInitTask()throws IOException{
		SystemConfig.LOCALE = getResources().getConfiguration().locale;
		InputStream fis = null;
		Properties appPros = new Properties();
		try{
			fis = this.getApplicationContext().getResources().getAssets().open("MoneyKeeper.properties");
			appPros.load(fis);
			
		}finally{
			if(fis != null) fis.close();
		}
	}
	
	
	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.activity_main, menu);
		return true;
	}
	
	@Override
	public boolean onOptionsItemSelected(MenuItem menuItem){
		switch(menuItem.getItemId()){
			case R.id.menu_settings:
			break;
		}
		return false;
	}
}
